package com.liuzh.deviceinfo.base;

import androidx.fragment.app.Fragment;
import c.h.a.y.a;

public abstract class BaseFragmentActivity extends BaseActivity {
    public <T extends Fragment> T A(int i) {
        return o().a(i);
    }

    public void onBackPressed() {
        Fragment A = A(16908290);
        if (!(A instanceof a) || !((a) A).n0()) {
            this.e.a();
        }
    }

    public void onWindowFocusChanged(boolean z) {
        super.onWindowFocusChanged(z);
        Fragment A = A(16908290);
        if (A instanceof a) {
            ((a) A).q0(z);
        }
    }
}
